package by.grsu.hdm.devices;

import java.util.Map;
import java.util.TreeMap;

import by.grsu.hdm.media.Track;
import by.grsu.hdm.model.IDevice;
import by.grsu.hdm.model.IUsbPort;
import by.grsu.hdm.model.IUsbSupport;

public class UsbFlashDrive implements IDevice, IUsbSupport {

	private String id;

	private Map<String, Track> tracks = new TreeMap<String, Track>();

	protected UsbFlashDrive() {
	}

	public UsbFlashDrive(String id) {
		this.id = id;
	}

	@Override
	public IUsbPort getUsbPort() {
		return null;
	}

	@Override
	public String getDeviceId() {
		return this.id;
	}

	public Map<String, Track> getTracks() {
		return tracks;
	}

	public void addTrack(Track track) {
		tracks.put(track.getName(), track);
	}
}
